package com.sxj.corejava.code07_面向对象.封装;

/**
 * @author 石小俊
 * 2024年07月15日 13:33
 */
public class Test01 {
    public static void main(String[] args) {
        User user = new User();
        //user.id = 1;
        user.setId(1);
        user.setUsername("admin");
        user.setPassword("123456");
        user.setStatus(true);

        System.out.println("id:" + user.getId());
        System.out.println("username:" + user.getUsername());
        System.out.println("password:" + user.getPassword());
        System.out.println("status:" + user.getStatus());
        System.out.println("status:" + user.isStatus());
        user.show();
    }
}
